//
//  AssistanceUnitDetailViewController.m
//  WideHelp
//
//  Created by ENERGY on 2018/8/21.
//  Copyright © 2018年 ENERGY. All rights reserved.
//

#import "AssistanceUnitDetailViewController.h"

@interface AssistanceUnitDetailViewController ()
@property (nonatomic, strong)UIWebView * webView;
@end

@implementation AssistanceUnitDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = self.pageTitleStr;
    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT - BOTTOM_HEIGHT - NAVI_HEIGHT)];
    self.webView.dataDetectorTypes = UIDataDetectorTypeAll;
    // 1. URL 定位资源,需要资源的地址
    NSURL *url = [NSURL URLWithString:self.urlStr];
    // 2. 把URL告诉给服务器,请求,从m.baidu.com请求数据
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    // 3. 发送请求给服务器
    [self.webView loadRequest:request];
    [self.view addSubview:self.webView];
}

@end
